Optimal. Leaf size=24 \[ \frac{a \cosh (c+d x)}{d}-\frac{b \text{sech}(c+d x)}{d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0326643, antiderivative size = 24, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 19, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.105, Rules used = {4133, 14} \[ \frac{a \cosh (c+d x)}{d}-\frac{b \text{sech}(c+d x)}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4133
Rule 14
Rubi steps
\begin{align*} \int \left (a+b \text{sech}^2(c+d x)\right ) \sinh (c+d x) \, dx &=\frac{\operatorname{Subst}\left (\int \frac{b+a x^2}{x^2} \, dx,x,\cosh (c+d x)\right )}{d}\\ &=\frac{\operatorname{Subst}\left (\int \left (a+\frac{b}{x^2}\right ) \, dx,x,\cosh (c+d x)\right )}{d}\\ &=\frac{a \cosh (c+d x)}{d}-\frac{b \text{sech}(c+d x)}{d}\\ \end{align*}
Mathematica [A] time = 0.021398, size = 35, normalized size = 1.46 \[ \frac{a \sinh (c) \sinh (d x)}{d}+\frac{a \cosh (c) \cosh (d x)}{d}-\frac{b \text{sech}(c+d x)}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.011, size = 26, normalized size = 1.1 \begin{align*} -{\frac{1}{d} \left ( b{\rm sech} \left (dx+c\right )-{\frac{a}{{\rm sech} \left (dx+c\right )}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.00482, size = 49, normalized size = 2.04 \begin{align*} \frac{a \cosh \left (d x + c\right )}{d} - \frac{2 \, b}{d{\left (e^{\left (d x + c\right )} + e^{\left (-d x - c\right )}\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.63862, size = 99, normalized size = 4.12 \begin{align*} \frac{a \cosh \left (d x + c\right )^{2} + a \sinh \left (d x + c\right )^{2} + a - 2 \, b}{2 \, d \cosh \left (d x + c\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \left (a + b \operatorname{sech}^{2}{\left (c + d x \right )}\right ) \sinh{\left (c + d x \right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.14407, size = 63, normalized size = 2.62 \begin{align*} \frac{a{\left (e^{\left (d x + c\right )} + e^{\left (-d x - c\right )}\right )}}{2 \, d} - \frac{2 \, b}{d{\left (e^{\left (d x + c\right )} + e^{\left (-d x - c\right )}\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]